package fylder.chat.tools;

import android.app.Activity;
import android.content.Context;
import android.view.inputmethod.InputMethodManager;

/**
 * Created by fylder on 2015/7/23.
 */
public class KeyBoradTool {

    public static void keyboardDisappear(Activity activity){

        // 键盘消失事件
        InputMethodManager imeManager = (InputMethodManager) activity.getSystemService(Context.INPUT_METHOD_SERVICE);
        imeManager.hideSoftInputFromWindow(activity.getWindow().getDecorView()
                .getWindowToken(), InputMethodManager.HIDE_NOT_ALWAYS);
    }
}
